package com.project.server.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("dining_table")
public class DiningTable {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 餐桌编号
     */
    private String tableNumber;

    /**
     * 所属餐厅ID
     */
    private Long restaurantId;

    /**
     * 可容纳人数
     */
    private Integer capacity;

    /**
     * 状态：0-空闲 1-已预订 2-使用中
     */
    private Integer status;


    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
